import re

str='\\'
print(str)
#\
#str='\' error
p1='\\'
p2='\\\\'
p3=r'\\'

# re.match(p1,str)
#error
print(re.match(p2,str))
#<re.Match object; span=(0, 1), match='\\'>
print(re.match(p3,str))
# <re.Match object; span=(0, 1), match='\\'>

<div class = "hd_prUS" > US & nbsp
[prə.nʌnsi'eɪʃ(ə)n] < /div >
